import request from '@/utils/request'

// 查询付款单(进口)列表
export function listImport(query) {
  return request({
    url: '/fina/pay/import/list',
    method: 'get',
    params: query
  })
}

// 查询付款单(进口)详细
export function getImport(serialNum) {
  return request({
    url: '/fina/pay/import/' + serialNum,
    method: 'get'
  })
}

// 新增付款单(进口)
export function addImport(data) {
  return request({
    url: '/fina/pay/import',
    method: 'post',
    data: data
  })
}

// 修改付款单(进口)
export function updateImport(data) {
  return request({
    url: '/fina/pay/import',
    method: 'put',
    data: data
  })
}

// 删除付款单(进口)
export function delImport(serialNum) {
  return request({
    url: '/fina/pay/import/' + serialNum,
    method: 'delete'
  })
}
// 同步
export function payImportSync() {
  return request({
    url: '/fina/pay/import/sync',
    method: 'get'
  })
}
